//
//  WBDemoViewController.swift
//  YYLWeibo
//
//  Created by 楊亜玲 on 16/11/10.
//  Copyright © 2016年 楊亜玲. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "第\(navigationController?.childViewControllers.count ?? 0) 个"
    }
    
    func showNext() {
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
}

extension WBDemoViewController {
    
    override func setupUI() {
        super.setupUI()
        
        // 设置导航栏按钮
        naviItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, target: self, action: #selector(showNext))
    }
}
